package com.yjd.comm.system.model;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.borrow.model.BorrowModel;
import com.yjd.comm.user.model.UserModel;
/**
 * 财务统计基本model
 * <b>description</b>：TODO <br>
 * <b>time</b>：2015-1-12上午11:18:24 <br>
 * <b>author</b>： percy-chen@hotmail.com
 */
public class CountModel extends Model implements Serializable {
	//统计项目名
	private String name;
	//相关用户列表
	private Map<Long,Object> user;
	//项目金额
	private Double price;
	//用户人数
	private Integer num;
	//相关borrow列表
	private Map<Long,Object> borrow;
	
	public Long getBorrowCount(){
		if(borrow!=null)
			return (long) borrow.size();
		return 0l;
	}
	
	public Long getSize(){
		if(user!=null)
			return (long) user.size();
		return 0l;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Map<Long, Object> getUser() {
		return user;
	}
	public void setUser(Map<Long, Object> user) {
		this.user = user;
	}
	public Map<Long, Object> getBorrow() {
		return borrow;
	}
	public void setBorrow(Map<Long, Object> borrow) {
		this.borrow = borrow;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	
}
